package cn.yexiaofeng.bookmanager.service;


import cn.yexiaofeng.bookmanager.beans.Reader_info;
import cn.yexiaofeng.bookmanager.dao.ReaderInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 读者信息
 */
@Service
public class ReaderServiceImpl  implements  ReaderInfoService{

    @Autowired
    ReaderInfoMapper readerInfoMapper;




    @Override
    public List<Reader_info> getAllReaderInfo(String currPage, String pageSize) {
        PageHelper.startPage(Integer.parseInt(currPage),Integer.parseInt(pageSize));
        List<Reader_info> allReaderInfo = readerInfoMapper.getAllReaderInfo();
        return allReaderInfo;
    }

    @Override
    public Reader_info getReaderInfo(Integer readerId) {
        return null;
    }
}